<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,  minimum-scale=1, maximum-scale=1, user-scalable=no">
    <title>Title</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
<label for="upBg">
    <span class="my-btn">背景</span>
    <input type="file" id="upBg" accept="image/*" onchange="uploadBg()" hidden>
</label>

<label for="upImg">
    <span class="my-btn">上传头像</span>
    <input type="file" id="upImg" accept="image/*" onchange="upLoadAvatar()" hidden>
</label>
<div id="capture">
    <img src="" alt="" id="bg">
    <div id="avatarWrapper">
        <img src="" alt="" id="avatar">
    </div>
</div>
<a href="" download="" id="savePicture">保存图片</a>

<canvas id="canvas"></canvas>
<script src="index.js"></script>
</body>
</html>